package vld

import (
	sqlc "bp/db/sqlc"
)

// IsOfferCategory check string is em_offer_category
func IsOfferCategory(v string) (success bool) {
	switch sqlc.EmOfferCategory(v) {
	case sqlc.EmOfferCategoryPreferential, sqlc.EmOfferCategoryUnrestricted, sqlc.EmOfferCategoryExclusive:
		success = true
	}
	return
}
